package com.gopay.common.domain.rcs;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.SequenceGenerator;

import com.gopay.common.domain.BaseEntity;

/**
 * 风控服务配置基类
 * @RcsAntiPhishConfGlobal.java
 * @author liujy
 * @2013-7-19 上午9:40:29  www.gopay.com.cn Inc.All rights reserved.
 */
@MappedSuperclass
public class RcsAntiPhishConf extends BaseEntity{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    @Id
    @SequenceGenerator(name = "RcsAntiPhishConfSequence", sequenceName = "RCS_ANTI_PHISH_CONF_SEQ")
    @GeneratedValue(generator = "RcsAntiPhishConfSequence", strategy = GenerationType.SEQUENCE)
    @Column(name="CONF_SQ", nullable=false, unique=true)
    private int confSq;
    // 配置类型01 - 精确域名校验02 - 域名模糊校验03 - 时间戳间隔校验04 - 订单IP比对校验05 - 验证码提示页06 - 交易请求源IP校验
    @Column(name="ANTI_PHISH_TYPE", nullable=false, unique=false)
    private String antiPhishType;
    // 是否开启0 - 关闭1 - 开启
    @Column(name="IS_ENABLED", nullable=false, unique=false)
    private int isEnabled;
    // 合法值，多个以";"分割
    @Column(name="LEGAL_VALUE", nullable=true, unique=false)
    private String legalValue;
    // 网关通道00 - 未经网关01 - 直连银行02 - 网关收银台03 - 网关接口
    @Column(name="GATEWAY_CHANNEL", nullable=false, unique=false)
    private String gatewayChannel;
    // 非法请求处理方式01 - 拒绝请求02 - 警告提示由用户决策03 - 放行
    @Column(name="ILLEGAL_REQ_DICISION", nullable=false, unique=false)
    private String illegalReqDicision;
    // 记录最终修改用户ID
    @Column(name="LAST_UPD_USER_ID", nullable=true, unique=false)
    private String lastUpdUserId;
    @Column(name="CREATED_TS", nullable=true, unique=false)
    private Date createdTs = new Date();
    @Column(name="LAST_UPD_TS", nullable=true, unique=false)
    private Date lastUpdTs = new Date();
    @Column(name="LAST_UPD_TRANCODE", nullable=true, unique=false)
    private String lastUpdTrancode;
    
    public int getConfSq() {
        return confSq;
    }
    public void setConfSq(int confSq) {
        this.confSq = confSq;
    }
    public String getAntiPhishType() {
        return antiPhishType;
    }
    public void setAntiPhishType(String antiPhishType) {
        this.antiPhishType = antiPhishType;
    }
    public int getIsEnabled() {
        return isEnabled;
    }
    public void setIsEnabled(int isEnabled) {
        this.isEnabled = isEnabled;
    }
    public String getLegalValue() {
        return legalValue;
    }
    public void setLegalValue(String legalValue) {
        this.legalValue = legalValue;
    }
    public String getGatewayChannel() {
        return gatewayChannel;
    }
    public void setGatewayChannel(String gatewayChannel) {
        this.gatewayChannel = gatewayChannel;
    }
    public String getIllegalReqDicision() {
        return illegalReqDicision;
    }
    public void setIllegalReqDicision(String illegalReqDicision) {
        this.illegalReqDicision = illegalReqDicision;
    }
    public String getLastUpdUserId() {
        return lastUpdUserId;
    }
    public void setLastUpdUserId(String lastUpdUserId) {
        this.lastUpdUserId = lastUpdUserId;
    }
    public Date getCreatedTs() {
        return createdTs;
    }
    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
    public Date getLastUpdTs() {
        return lastUpdTs;
    }
    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }
    public String getLastUpdTrancode() {
        return lastUpdTrancode;
    }
    public void setLastUpdTrancode(String lastUpdTrancode) {
        this.lastUpdTrancode = lastUpdTrancode;
    }
}
